-- GENERATED SPELL FOR [Strashaz Serpent Guard] --


function spell0_4366(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4366', 5289, 1)
end

function spell1_4366(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(16509,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4366', 15000, 1)
end

function spell2_4366(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(12057,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4366', 568, 1)
end

function Sorts_4366(pUnit, Event)
local choix_sorts_4366 = math.random(0, 2)
if choix_sorts_4366 == 0 then
pUnit:RegisterEvent('spell0_4366', 1, 1)
end
if choix_sorts_4366 == 1 then
pUnit:RegisterEvent('spell1_4366', 1, 1)
end
if choix_sorts_4366 == 2 then
pUnit:RegisterEvent('spell2_4366', 1, 1)
end
end

function mob4366_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4366', math.random(1500, 3000), 1)
end

function mob4366_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4366_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4366_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4366, 1, 'mob4366_Action')
RegisterUnitEvent(4366, 2, 'mob4366_Leave')
RegisterUnitEvent(4366, 3, 'mob4366_Kill')
RegisterUnitEvent(4366, 4, 'mob4366_Die')
